import { createRouter, createWebHistory } from 'vue-router'
const Cart = () => import("../views/cart/Cart");
const Home = () => import("../views/home/Home");
const News = () => import("../views/news/News");
const Profile = () => import("../views/profile/profile");

const routes = [
  {
    path:'/',
    redirect:'/home'
  },
  {
    path:'/home',
    component:Home
  },
  {
    path:'/cart',
    component:Cart
  },
  {
    path:'/news',
    component:News
  },
  {
    path:'/profile',
    component:Profile
  }

]


const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
